package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread t1=new MyThread1();
        Thread t2=new MyThread2();
        Thread t3=new MyThread3();
        Thread t4=new MyThread4();
        t1.start();
        t2.start();
        t3.start();
        t4.start();

    }
}
class MyThread1 extends Thread{
    public  void run(){
        for(int i=0;i<1000;i++){
            System.out.println("你好你是哪位");
        }
    }
}
class MyThread2 extends Thread{
    public  void run(){
        for(int i=0;i<1000;i++){
            System.out.println("你妈妈");
        }
    }
}
class MyThread3 extends Thread{
    public void run(){
        for(int i=0;i<1000;i++){
            System.out.println("哇咔咔");
        }
    }
}
class MyThread4 extends Thread{
    public void run(){
        for(int i=0;i<1000;i++){
            System.out.println("你好呀");
        }
    }
}